package com.project.bean;

import java.time.LocalDate;

/**
 * @author liuyulai
 * Created with IntelliJ IDEA.
 * Date: 21.7.10
 * Time: 16:20
 * Description: 活动实体bean
 */
public class ActivityBean {
    /**
     * 活动id
     */
    private int activityId;
    /**
     * 活动名称（内容
     */
    private String activityName;
    /**
     * 活动开始时间
     */
    private LocalDate time;
    /**
     * 活动负责人
     */
    private String responsible;
    /**
     * 活动地点
     */
    private String location;
    /**
     * 活动所属学校
     */
    private SchoolBean schoolBean;

    public ActivityBean() {
    }

    public ActivityBean(String activityName, String responsible, LocalDate startTime, String location, int schoolId) {
        this.activityName = activityName;
        this.responsible = responsible;
        this.location = location;
        this.schoolBean = new SchoolBean();
        schoolBean.setSchoolId(schoolId);
        this.time = startTime;
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public String getActivityName() {
        return activityName;
    }

    public void setActivityName(String activityName) {
        this.activityName = activityName;
    }

    public LocalDate getTime() {
        return time;
    }

    public void setTime(LocalDate time) {
        this.time = time;
    }

    public String getResponsible() {
        return responsible;
    }

    public void setResponsible(String responsible) {
        this.responsible = responsible;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public SchoolBean getSchoolBean() {
        return schoolBean;
    }

    public void setSchoolBean(SchoolBean schoolBean) {
        this.schoolBean = schoolBean;
    }

    @Override
    public String toString() {
        return "ActivityBean{" +
                "activityId=" + activityId +
                ", activityName='" + activityName + '\'' +
                ", time=" + time +
                ", responsible='" + responsible + '\'' +
                ", location='" + location + '\'' +
                ", schoolBean=" + schoolBean +
                "}\n";
    }
}
